# coding:utf8

'''
Created on 2016年1月22日

@author: Administrator
'''
from urllib.request import urlopen


class HtmlDownloader(object):
    
    
    def download(self, url):
        if url is None:
            return None
        
        response = urlopen(url)
        if response.getcode() != 200:
            return None
        
        return response.read()
    
    



